package com.ea.common.utils;

import java.util.Random;

public class RandomCodeUtils {
    public static Integer getCode() {
        Integer code = 0;
        Random random = new Random();
        int temp = 0;
        for (int i = 0; i < 6; i++) {
            temp = random.nextInt(9);
            code += temp;
            if (i < 5) code *= 10;
        }
        return code;
    }
}
